// Fill out your copyright notice in the Description page of Project Settings.


#include "BoomGameInstance.h"

#include "AudioModule/AudioService.h"

void UBoomGameInstance::Init()
{
	Super::Init();

	RegisterServices();
}

void UBoomGameInstance::Shutdown()
{
	UnRegisterServices();
	
	Super::Shutdown();
}

void UBoomGameInstance::RegisterServices()
{
	UAudioService::Register<UAudioService>();

	auto AudioService = UAudioService::GetInstance();
	AudioService->Initialize();
	
	UE_LOG(LogTemp, Display, TEXT("Register services"))
}

void UBoomGameInstance::UnRegisterServices()
{
	UAudioService::Unregister<UAudioService>();
	
	UE_LOG(LogTemp, Display, TEXT("UnRegister services"))
}
